﻿using SimpleSaas.Common;
using SimpleSaas.Common.DataBase;
using SimpleSaas.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.ISysRepository
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	public interface ISysUserRepository : IWholeRepository<SysUserEntity, long>
	{
		/// <summary>
		///  添加用户
		/// </summary>
		/// <param name="userDto"></param>
		Task AddAsync(SysUserDto userDto);


		/// <summary>
		/// 
		/// </summary>
		/// <param name="matchCondition"></param>
		/// <returns></returns>
		public ISugarQueryable<LoginUserInfo> Query(Action<ISugarQueryable<SysUserEntity, SysTenantEntity>> matchCondition);
	}
}
